import service from '@/utils/request'

const BASE_URL = 'api-system'

//获取名誉顾问列表
export function listHonorAdvise(data) {
    return service({
        url: `${BASE_URL}/honor-advisers`,
        method: 'get',
        params: data
    })
}

// 新增名誉顾问
export function saveHonorAdvise(data) {
    return service({
        url: `${BASE_URL}/honor-adviser`,
        method: 'post',
        data
    })
}

// 修改名誉顾问
export function updateHonorAdvise(data) {
    return service({
        url: `${BASE_URL}/honor-adviser`,
        method: 'put',
        data
    })
}

//获取名誉顾问
export function getHonorAdviser(honorAdviserId) {
    return service({
        url: `${BASE_URL}/honor-adviser/${honorAdviserId}`,
        method: 'get'
    })
}

//删除名誉顾问
export function deleteHonorAdviser(honorAdviserId) {
    return service({
        url: `${BASE_URL}/honor-adviser/${honorAdviserId}`,
        method: 'delete'
    })
}

//修改名誉顾问状态
export function updateHonorAdviserStatus(honorAdviserId,status) {
    return service({
        url: `${BASE_URL}/honor-adviser/${honorAdviserId}/status/${status}`,
        method: 'put'
    })
}
